<?php

namespace App\Models\Cruise;

use App\Models\BaseModel;

class CruiseTaskOrderMappingModel extends BaseModel
{
    protected $table = 'cruise_task_order_mappings';

    public $timestamps = false;

    protected $fillable = ['taskId', 'orderId'];

    public static function add(int $taskId, int $orderId)
    {
        return self::query()->create(['taskId' => $taskId, 'orderId' => $orderId, 'createdAt' => time()]);
    }
}
